import Vue from 'vue'
import Vuex from 'vuex'
import getters from './getters'
import add from './modules/add'
import user from './modules/user'

// import {createPersistedState, createSharedMutations} from 'vuex-electron'
Vue.use(Vuex)

const store = new Vuex.Store({
  modules: {
    add,
    user
  },
  // plugins: [
  //   createPersistedState,
  //   createSharedMutations
  // ],
  strict: process.env.NODE_ENV !== 'production',
  getters
});

export default store
